<?php
echo "<div class='user' >
    <span>欢迎: xxx</span>
    <a href=\"#\" >退出</a>
</div>";

echo "<div class='user' >
    <a href=\"#\" >去登录</a>
    <a href=\"#\" >去注册</a>
</div>";

?>